package io.renren.modules.sys.vo;

import io.renren.modules.sys.entity.OrderItemEntity;

import java.math.BigDecimal;

/**
 * 订单详情
 * Created By zhangyufei on 2018/11/13
 */
public class OrderItemDetailVO extends OrderItemEntity{

    /**
     * 材质
     */
    private String material;
    /**
     * 型号
     */
    private String model;

    /***
     *
     * 总价
     */
    private BigDecimal totalPrice;


    public String getMaterial() {
        return material;
    }

    public void setMaterial(String material) {
        this.material = material;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public BigDecimal getTotalPrice() {
        BigDecimal b1 = new BigDecimal(super.getNumber());
        return b1.multiply(super.getPrice());
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }
}
